<?php
class request{


	public function __construct() {
		
		
	}




	function isGET(){
		return $_SERVER['REQUEST_METHOD'] === 'GET';
	}


	function isPOST(){
		return $_SERVER['REQUEST_METHOD'] === 'POST';
	}


	function isXHR(){
		return $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
	}

	private static function & convert(&$a){
		foreach($a as $k=> &$v){
			if( is_array($v) ){
				$a[$k]	= self::convert($v);
			}else{
				$a[$k]	= StripSlashes(trim($v));
			}
		}
		return $a;
	}


}
?>